package ai.mspbots.service.snapshot.entity;

import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class SnapshotEntity implements Serializable {

    private Long id;

    private String name;

    private String type = "snapshot";

    public static SnapshotEntity of(Long id) {
        SnapshotEntity snapshotEntity = new SnapshotEntity();
        snapshotEntity.setId(id);
        snapshotEntity.setName(IdUtil.randomUUID());
        return snapshotEntity;
    }
}
